package game.view.menu.orderMenu
{
	import flash.text.TextField;
	
	import game.UIComponent.Panel;
	import game.managers.LanguageManager;
	import game.utils.Utils;
	
	public class ClockPanel extends Panel
	{
		private var _clocktxt:TextField;
		
		private var _hour:Number=10;
		private var _min:Number=25;
//		private var _hourstr:String="小时";
//		private var _minstr:String="分钟";
		public function ClockPanel()
		{
			init();
		}
		
		override protected function init():void
		{
			setBgImage("clockPanel",137,66);
			
//			Global.remainHour=_hour;
//			Global.remainMin=_min;
			
			_clocktxt=Utils.getTextField(_hour+LanguageManager.getWord("clock.hour")+_min+LanguageManager.getWord("clock.minute"),12);
			_clocktxt.x=this.x + 30;
			_clocktxt.y=this.y + 35;
			addChild(_clocktxt);
		}

		public function get hour():Number
		{
			return _hour;
		}

		public function set hour(value:Number):void
		{
			_hour = value;
		}

		public function get min():Number
		{
			return _min;
		}

		public function set min(value:Number):void
		{
			_min = value;
		}


	}
}